// JavaScript Document

function addOption(){  
  
          //根据id查找对象，  
var obj1=document.getElementById('english_text_type');   
           //添加一个选项  
//obj.add(new      Option("文本","值"));    //这个只能在IE中有效
var name=document.getElementById('addoption').value; 
obj1.options.add(new Option(name,"value")); //这个兼容IE与firefox
var obj2=document.getElementById('english_text_type2');   
           //添加一个选项  
//obj.add(new      Option("文本","值"));    //这个只能在IE中有效
var name=document.getElementById('addoption').value; 
obj2.options.add(new Option(name,"value")); //这个兼容IE与firefox  

}  
//删除选中项目
function removeOne(){  
var obj1=document.getElementById('english_text_type'); 
var obj2=document.getElementById('english_text_type2');  
        var index=obj1.selectedIndex;  
obj1.options.remove(index);  
 obj2.options.remove(index);  
} 

function addOption_work(){  
  
          //根据id查找对象，  
var obj1=document.getElementById('work');   
           //添加一个选项  

var name=document.getElementById('addoption_work').value; 
obj1.options.add(new Option(name,"value")); 
var obj2=document.getElementById('work2');  
document.body. 
           //添加一个选项  


obj2.options.add(new Option(name,"value")); 
}  
//删除选中项目
function removeOne_work(){  
var obj=document.getElementById('work');   
var obj1=document.getElementById('work2'); 
        var index=obj.selectedIndex;  
obj.options.remove(index);  
obj1.options.remove(index);  
 
} 
function addScore(){  
  
      
var obj1=document.getElementById('listening'); 
var obj2=document.getElementById('speaking'); 
var obj3=document.getElementById('reading'); 
var obj4=document.getElementById('writing');   
           //添加一个选项  

var score=document.getElementById('score').value; 
obj1.options.add(new Option(score,"value")); 
obj2.options.add(new Option(score,"value")); 
obj3.options.add(new Option(score,"value")); 
obj4.options.add(new Option(score,"value")); 
}  